package com.hsmw.api.vo;

import com.hsmw.domain.HsmwMenu;
import com.hsmw.domain.HsmwUserDriver;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author WD
 * @version 1.0
 * @description: TODO
 * @date 2021/3/3 10:31
 */
@Data
public class MenuListVO extends HsmwMenu {

	private String title;
	private String key;
	private String parent;
	private List<MenuListVO> children;

	public String getTitle() {
		return getName();
	}

	public String getKey() {
		return getId();
	}

	public boolean getParent() {
		return getParentId().equals("") ? true : false;
	}

}
